package com.mego.tzadd.database.greendao;

import java.util.Map;

import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.AbstractDaoSession;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.identityscope.IdentityScopeType;
import org.greenrobot.greendao.internal.DaoConfig;

import com.mego.tzadd.database.dbmodel.Jtinfo;
import com.mego.tzadd.database.dbmodel.MyContacts;
import com.mego.tzadd.database.dbmodel.Lonlatlog;
import com.mego.tzadd.database.dbmodel.Commandlog;
import com.mego.tzadd.database.dbmodel.Jtdetailinfo;
import com.mego.tzadd.database.dbmodel.SystemAllInfo;
import com.mego.tzadd.database.dbmodel.Thmlog;
import com.mego.tzadd.database.dbmodel.Sendmsg;

import com.mego.tzadd.database.greendao.JtinfoDao;
import com.mego.tzadd.database.greendao.MyContactsDao;
import com.mego.tzadd.database.greendao.LonlatlogDao;
import com.mego.tzadd.database.greendao.CommandlogDao;
import com.mego.tzadd.database.greendao.JtdetailinfoDao;
import com.mego.tzadd.database.greendao.SystemAllInfoDao;
import com.mego.tzadd.database.greendao.ThmlogDao;
import com.mego.tzadd.database.greendao.SendmsgDao;

// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.

/**
 * {@inheritDoc}
 * 
 * @see org.greenrobot.greendao.AbstractDaoSession
 */
public class DaoSession extends AbstractDaoSession {

    private final DaoConfig jtinfoDaoConfig;
    private final DaoConfig myContactsDaoConfig;
    private final DaoConfig lonlatlogDaoConfig;
    private final DaoConfig commandlogDaoConfig;
    private final DaoConfig jtdetailinfoDaoConfig;
    private final DaoConfig systemAllInfoDaoConfig;
    private final DaoConfig thmlogDaoConfig;
    private final DaoConfig sendmsgDaoConfig;

    private final JtinfoDao jtinfoDao;
    private final MyContactsDao myContactsDao;
    private final LonlatlogDao lonlatlogDao;
    private final CommandlogDao commandlogDao;
    private final JtdetailinfoDao jtdetailinfoDao;
    private final SystemAllInfoDao systemAllInfoDao;
    private final ThmlogDao thmlogDao;
    private final SendmsgDao sendmsgDao;

    public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
            daoConfigMap) {
        super(db);

        jtinfoDaoConfig = daoConfigMap.get(JtinfoDao.class).clone();
        jtinfoDaoConfig.initIdentityScope(type);

        myContactsDaoConfig = daoConfigMap.get(MyContactsDao.class).clone();
        myContactsDaoConfig.initIdentityScope(type);

        lonlatlogDaoConfig = daoConfigMap.get(LonlatlogDao.class).clone();
        lonlatlogDaoConfig.initIdentityScope(type);

        commandlogDaoConfig = daoConfigMap.get(CommandlogDao.class).clone();
        commandlogDaoConfig.initIdentityScope(type);

        jtdetailinfoDaoConfig = daoConfigMap.get(JtdetailinfoDao.class).clone();
        jtdetailinfoDaoConfig.initIdentityScope(type);

        systemAllInfoDaoConfig = daoConfigMap.get(SystemAllInfoDao.class).clone();
        systemAllInfoDaoConfig.initIdentityScope(type);

        thmlogDaoConfig = daoConfigMap.get(ThmlogDao.class).clone();
        thmlogDaoConfig.initIdentityScope(type);

        sendmsgDaoConfig = daoConfigMap.get(SendmsgDao.class).clone();
        sendmsgDaoConfig.initIdentityScope(type);

        jtinfoDao = new JtinfoDao(jtinfoDaoConfig, this);
        myContactsDao = new MyContactsDao(myContactsDaoConfig, this);
        lonlatlogDao = new LonlatlogDao(lonlatlogDaoConfig, this);
        commandlogDao = new CommandlogDao(commandlogDaoConfig, this);
        jtdetailinfoDao = new JtdetailinfoDao(jtdetailinfoDaoConfig, this);
        systemAllInfoDao = new SystemAllInfoDao(systemAllInfoDaoConfig, this);
        thmlogDao = new ThmlogDao(thmlogDaoConfig, this);
        sendmsgDao = new SendmsgDao(sendmsgDaoConfig, this);

        registerDao(Jtinfo.class, jtinfoDao);
        registerDao(MyContacts.class, myContactsDao);
        registerDao(Lonlatlog.class, lonlatlogDao);
        registerDao(Commandlog.class, commandlogDao);
        registerDao(Jtdetailinfo.class, jtdetailinfoDao);
        registerDao(SystemAllInfo.class, systemAllInfoDao);
        registerDao(Thmlog.class, thmlogDao);
        registerDao(Sendmsg.class, sendmsgDao);
    }
    
    public void clear() {
        jtinfoDaoConfig.clearIdentityScope();
        myContactsDaoConfig.clearIdentityScope();
        lonlatlogDaoConfig.clearIdentityScope();
        commandlogDaoConfig.clearIdentityScope();
        jtdetailinfoDaoConfig.clearIdentityScope();
        systemAllInfoDaoConfig.clearIdentityScope();
        thmlogDaoConfig.clearIdentityScope();
        sendmsgDaoConfig.clearIdentityScope();
    }

    public JtinfoDao getJtinfoDao() {
        return jtinfoDao;
    }

    public MyContactsDao getMyContactsDao() {
        return myContactsDao;
    }

    public LonlatlogDao getLonlatlogDao() {
        return lonlatlogDao;
    }

    public CommandlogDao getCommandlogDao() {
        return commandlogDao;
    }

    public JtdetailinfoDao getJtdetailinfoDao() {
        return jtdetailinfoDao;
    }

    public SystemAllInfoDao getSystemAllInfoDao() {
        return systemAllInfoDao;
    }

    public ThmlogDao getThmlogDao() {
        return thmlogDao;
    }

    public SendmsgDao getSendmsgDao() {
        return sendmsgDao;
    }

}
